package fields;

import view.Boundary;
import model.Player;

public class Refuge extends Field{
	private int bonus;

	public Refuge(int number, String name, int bonus) {
		super(number, name);
		this.bonus = bonus;
	}

	@Override
	public void landOnField(Player player) {
		Boundary.showMessage("You landed on " + getNumber() + " " + getName().replace("-<br>", "")
			+ " and receive " + this.bonus + ".");
		player.deposit(this.bonus);
	}

	@Override
	public String toString() {
		return "Refuge\t[" + super.toString() + " " + "bonus=" + this.bonus+ "]";
	}
}